﻿@model Jingxing.Models.Admin.ReplyModel
@{
    ViewBag.Title = "警兴 - 留言管理";
    Model.Caption = "留言管理";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<style type="text/css">
    .display-text
    {
        display: inline-block;
        width: 60%;
        padding: 0.7em 10px;
        font-size: 90%;
    }
</style>
@using (Html.BeginForm(new { act = "submit" }))
{
    @Html.HiddenFor(m => m.ID)
    <div class="ui-bar ui-bar-a">
        编辑
    </div>
    <div class="ui-body ui-body-a">
        <div data-role="fieldcontain">
            <label for="Name" class="ui-input-text">留言者：</label>
            <div class="display-text">@Model.Name</div>
        </div>
        <div data-role="fieldcontain">
            <label for="Contact" class="ui-input-text">联系方式：</label>
            <div class="display-text">@Model.Contact</div>
        </div>
        <div data-role="fieldcontain">
            <label for="DateTime" class="ui-input-text">留言时间：</label>
            <div class="display-text">@Model.DateTime</div>
        </div>
        <div data-role="fieldcontain">
            <label for="Content" class="ui-input-text">留言内容：</label>
            <div class="display-text">@Model.Content</div>
        </div>
        <div data-role="fieldcontain">
            @Html.LabelFor(m => m.Reply)
            @Html.TextAreaFor(m => m.Reply, new Dict() { "data-mini:true" })
            @Html.ValidationMessageFor(m => m.Reply, new { style = "color:Red" })
        </div>
        <div data-role="fieldcontain">
            @Html.LabelFor(m => m.ReplyDateTime)
            @Html.TextBox("ReplyDateTime", Model.ReplyDateTime.ToString("d"), new { @class = "myDatePickerClass" })
            @Html.ValidationMessageFor(m => m.ReplyDateTime, new { style = "color:Red" })
        </div>
        <input type="submit" value="确认" data-inline="true" data-mini="true" />
    </div>
}